#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/fam/files/famd,v 1.4 2004/10/28 13:06:34 foser Exp $

depend() {
	use logger
	need net 
}

start() {
	ebegin "Starting MythTV frontend"
	start-stop-daemon --start --quiet --exec /usr/bin/mythtvsystem \
			  --chuid mythtv -e HOME=/home/mythtv \
		          -- /etc/conf.d/mythtvsystem
	eend $?
}

stop() {
	ebegin "Stopping MythTV frontend"
	start-stop-daemon --stop --quiet --exec /usr/sbin/mythtvsystem
	eend $?
}
